package com.example.demo.dao;

import com.example.demo.entity.UsersEntity;
import com.example.demo.vo.UsersVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UsersDao {
    int delUser(@Param("id") int id);
    UsersEntity doLogin(@Param("username") String username,
                       @Param("password") String password);
    int addUser(@Param("userVo") UsersVo usersVo);
    UsersEntity getUserByUsername(@Param("username") String username);
    int updateUser(@Param("userVo") UsersVo usersVo);
    int changeUHead(@Param("id") int id,@Param("avatar") String avatar);
}
